.patient {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.patient .patient-header,
.patient .patient-footer {
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: space-between;
}

.patient .patient-header div,
.patient .patient-footer div {
  text-align: center;
  align-items: center;
}

.patient .patient-main {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  background: #f9f9f9;
}

/* 底部导航 */
.patient .patient-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #eee;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
}

.patient .patient-footer .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 12px;
}

.patient .patient-footer .tab .tab-icon {
  width: 25px;
  font-size: 20px;
  line-height: 22px;
}

.patient .patient-footer .tab .tab-label {
  margin-top: 4px;
}

.patient .patient-footer .center-btn {
  position: relative;
  width: 64px;
  height: 64px;
  margin-top: -24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4bb0ff, #2d8cf0);
  box-shadow: 0 6px 18px rgba(45, 140, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient .patient-footer .center-btn .center-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2d8cf0;
}

.patient-main-swiper {
  width: 100%;
  /* height: 100px; */
}

.patient-main-title {
  width: 100%;
  height: 50px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  margin: 5px 0;
  padding: 10px 0;
  background: #fff;
}

.patient-department-scroll {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 0 15px;
  align-items: center;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.patient-department-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.patient-department-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f5f5;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100px;
}

.patient-department-item.active {
  background: #1890ff;
  color: #fff;
  transform: scale(1.05);
}

.patient-department-item:hover {
  background: #e6f7ff;
  transform: scale(1.02);
}

.patient-department-item.active:hover {
  background: #40a9ff;
}

.patient-department-icon {
  margin-bottom: 4px;
}

.patient-department-name {
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* 病友圈卡片样式 */
.patient-main-patient {
  flex: 1;
  background: #f5f5f5;
  padding: 10px 15px;
  overflow-y: auto;
}

.patient-card {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.patient-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.patient-card-header {
  /* display: flex;
  justify-content: space-between; */
  align-items: flex-start;
  margin-bottom: 10px;
}

.patient-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex: 1;
  margin-right: 10px;
}

.patient-card-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.patient-card-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.patient-card-time-text {
  font-size: 12px;
  color: #999;
}

.patient-card-content {
  position: relative;
  margin-bottom: 12px;
}

.patient-card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.patient-card-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff6b35;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 30px;
  text-align: center;
}

.patient-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.patient-card-stats {
  gap: 15px;
  text-align: right;
}

.patient-card-stats>span {
  margin: 0 10px;
}

.patient-card-collect,
.patient-card-suggest {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.patient-card-collect:hover,
.patient-card-suggest:hover {
  color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .patient-main-patient {
    padding: 8px 12px;
  }

  .patient-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .patient-card-title {
    font-size: 15px;
  }

  .patient-card-description {
    font-size: 13px;
  }

  .patient-card-stats {
    gap: 12px;
  }
}

.patient-main-know {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: space-between;
}

.patient-main-know>div {
  width: 49%;
  height: 100%;
  border: 1px solid #cccccc;
}

.patient-department {
  width: 100%;
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.patient-department>div {
  width: 25%;
  height: 100px;
  text-align: center;
  /* border: 1px solid #cccccc; */
}

.patient-department>div .adm-image {
  display: inline-block;
}

.patient-consultation {
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  margin: 5px 0;
}


.patient-consultation-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #cccccc;
}

.patient-consultation-tabs>div {
  width: 20%;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.patient-consultation-content {
  width: 100%;
  background: #fff;
  overflow-x: hidden;
}

.consultation-item {
  width: 100%;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.consultation-item-single {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consultation-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
}

.consultation-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.consultation-item-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  word-wrap: break-word;
}

.consultation-item-author {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.consultation-item-time {
  font-size: 12px;
  color: #999;
}

.consultation-item-triple {
  width: 100%;
}

.consultation-item-images {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.consultation-item-images .adm-image {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  width: 80px;
  height: 80px;
  /* object-fit: cover; */
}

.consultation-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consultation-item-no-image {
  width: 100%;
}

.consultation-item-no-image .consultation-item-title {
  margin-bottom: 8px;
}

.consultation-item-no-image .consultation-item-meta {
  margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .consultation-item {
    padding: 12px;
  }

  .consultation-item-single {
    gap: 10px;
  }

  .consultation-item-image .adm-image {
    width: 100px;
    height: 70px;
  }

  .consultation-item-title {
    font-size: 15px;
  }

  .consultation-item-images .adm-image {
    width: 70px;
    height: 70px;
  }

  .consultation-item-author,
  .consultation-item-time {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .consultation-item {
    padding: 10px;
  }

  .consultation-item-image .adm-image {
    width: 90px;
    height: 60px;
  }

  .consultation-item-title {
    font-size: 14px;
  }

  .consultation-item-images .adm-image {
    width: 60px;
    height: 60px;
  }
}